import count from './js/count'
import sum from './js/sum'

// 要想webpack打包该资源，必须引用该资源
import './css/index.css'
import './less/index.less'
// import './stylus/index.styl'
import './fonts/iconfont.css'

let result = count(1,2)
console.log(result)
console.log(sum(1,2,3,4,5))

// 判断是否支持HMR功能
if (module.hot) {
    module.hot.accept("./js/count.js", function (count) {
      const result1 = count(2, 1);
      console.log(result1);
    });
  
    module.hot.accept("./js/sum.js", function (sum) {
      const result2 = sum(1, 2, 3, 4);
      console.log(result2);
    });
  }